﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace Caifu.Services
{
	[ServiceContract]
	[ServiceKnownType(typeof(Xyz))]
	public interface IWebNetValueDailyService
	{
		[OperationContract]
		[WebGet(UriTemplate = "all", ResponseFormat = WebMessageFormat.Json)]
		List<NetValueDaily> GetAllNetValueDailys();

		[OperationContract]
		[WebGet(UriTemplate = "list", ResponseFormat = WebMessageFormat.Json)]
		IList<Xyz> List();

		[OperationContract]
		[WebGet(UriTemplate = "get", ResponseFormat = WebMessageFormat.Json)]
		Xyz Get();


	}

	[DataContract]
	public class Xyz
	{
		[DataMember]
		public int x { get; set; }
		[DataMember]
		public int y { get; set; }
		[DataMember]
		public int z { get; set; }
	}
}
